package com_djm_2025_06_05.demo6;

public class Bird extends Animal implements IFlyable{
    public Bird(String name, int age) {
        super(name, age);
    }

    @Override
    public void eat() {
        System.out.println(this.name+"吃虫子");
    }

    @Override
    public void fly() {
        System.out.println(this.name + "扇翅膀飞");
    }
}
